

////////////////////////////////
////////////////////////////////
////////////////////////////////

/*******************************
The Self-Employment Effects of the EITC in the Gig Economy

by Riley Wilson

This do file creates all of the main figures and tables for the paper 
"The Self-Employment Effeects of the EITC in the Gig Economy"

The do file uses the following datasets to generate this analysis:

(1) uber_entry_dates.dta
	-This data set contains the Uber entry date at the MSA level. 
	The data is compiled by using the data available in Hall et al. (2018) and
	as hand collected from the Uber newsroom website.
	
(2) state_eitc_panel.dta
	-This data set contains the state EITC percent of the federal by year for all states.
	This data was collected by the author from the NBER.
	
(3) hslesshousehold_ubereitc2005_2019.dta
	-This data set is the main analysis data set, containing self-employment outcomes 
	at the household level from 2005-2019 using the ACS data. This data was 
	downloaded from IPUMS and cleaned accordingly. It has been merged to the Uber
	data as well as the EITC data to be able to measure EITC and Uber exposure.
	
(4) householdall_ubereitc2005_2019.dta
	-This data set is the same as the dataset above but does not restrict the 
	sample on education or marital status. It also limits the variables to only 
	those needed for the heterogeneity table. This data was downloaded from 
	IPUMS and cleaned accordingly.
*********************************/

//cd "" //set your directory

/*******************
Figure 1. States with an EITC and Metropolitan Areas with Uber Operating in the Area
*******************/
do "code\figure1.do"

/********************
Figure 2. Effect of EITC in Uber Areas on Business Income and Total Income Distribution of Single, Less-educated Households
********************/
do "code\figure2.do"

/*******************
Figure 3. Event Study: Effect of Uber Entry on Self-Employment Response to the EITC
*******************/
do "code\figure3.do"

/********************
Table 1. Summary Statistics by Uber Adoption Status
********************/
do "code\table1.do"

/*******************
Table 2. Effect of EITC Generosity on Self-Employment of Single, Less-educated Households, by Uber Availability
*******************/
do "code\table2.do"

/*******************
Table 3. Robustness: Effect of EITC Generosity on Self-Employment of Single, Less-educated Households, by Uber Availability
*******************/
do "code\table3.do"

/*******************
Table 4. Heterogeneity: Effect of EITC Generosity on Self-Employment of Single, Less-educated Households, by Uber Availability
*******************/
do "code\table4.do"

